package com.zp.drug.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 保存库存扣减、stock_log和处方对应对象 grant_stock_vs_prescription
 *
 * @author zhang peng
 * @ date 2024-06-07
 */
@Data
@TableName("grant_stock_vs_prescription")
public class GrantStockVsPrescription implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "grant_stock_vs_id")
    private String grantStockVsId;

    /**
     * 库存id
     */
    private String stockId;

    /**
     * 分组字段
     */
    private String identicalInfoId;

    /**
     * 扣减数量
     */
    private Integer num;

    /**
     * 处方主记录id
     */
    private String prescriptionApplyId;

    /**
     * 处方明细id
     */
    private String prescriptionItemId;

    /**
     * 批次号
     */
    private String batchNo;

    /**
     * 库存扣减记录id
     */
    private String drugStockAllLogId;


    /**
     * 熔断后异常信息
     */
    @TableField(exist = false)
    private String exceptionCode;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

}
